<?php slot("ms","teacher.ls")?>
<h1 class="title"><?php echo __("Lista de Profesores")?></h1>

<table class="tbl-1" style="width: 98%">
  <thead>
    <tr>
      <th><?php echo __("Nombre") ?></th>
      <th> <?php echo __("Profesión") ?></th>
      <th><?php echo __("Foto") ?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($teachers as $teacher): ?>
    <tr>
      
      <td><a href="<?php echo url_for('teacher/show?id='.$teacher->getId()) ?>"><?php echo $teacher->getId() ?></a><?php echo $teacher->getFirstName()." ".$teacher->getLastName() ?></td>
      <td><?php echo $teacher->getProfession() ?></td>
      <td><?php echo $teacher->getPhoto() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a class="button" href="<?php echo url_for('teacher/new') ?>">New</a>
